<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<div id="dbStatus" class="content">
    <h2>Database Status</h2>
    <table border=1>
        <bean:define id="phenotypeStatusList" name="dbStatusForm" property="cohortSummary" />
        <tr>
            <th>&nbsp;</th>
            <logic:iterate id="phenotypeStatus" name="phenotypeStatusList">
                <th><bean:write name="phenotypeStatus" property="cohort.name"/></th>
            </logic:iterate>
        </tr>
        <tr>
            <td>Trios</td>
            <logic:iterate id="phenotypeStatus" name="phenotypeStatusList">
                <td><bean:write name="phenotypeStatus" property="complete"/></td>
            </logic:iterate>
        </tr>
        <tr>
            <td>One Parent / One Child</td>
            <logic:iterate id="phenotypeStatus" name="phenotypeStatusList">
                <td><bean:write name="phenotypeStatus" property="oneParent"/></td>
            </logic:iterate>
        </tr>
    </table>
    <h3>Affected Status</h3>
    <table border=1>
        <tr>
            <td>&nbsp;</td>
            <logic:iterate id="phenotypeStatus" name="phenotypeStatusList">
                <th colspan=3 align="center"><bean:write name="phenotypeStatus" property="cohort.name"/></th>
            </logic:iterate>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <logic:iterate id="phenotypeStatus" name="phenotypeStatusList">
                <td>Affected Complete Trios</td>
                <td>Affected One Parent / One Child</td>
                <td>Unaffected Complete Trios</td>
            </logic:iterate>
        </tr>
        <bean:define id="statusBeanList" name="dbStatusForm" property="statusBeans" />
        <logic:iterate id="statusBean" name="statusBeanList">
            <tr>
                <td><bean:write name="statusBean" property="phenotype.name"/></td>
                <logic:iterate id="phenotypeStatus" name="statusBean" property="phenotypeStatusList" >
                    <td><bean:write name="phenotypeStatus" property="complete"/></td>
                    <td><bean:write name="phenotypeStatus" property="oneParent"/></td>
                    <td><bean:write name="phenotypeStatus" property="unaffectedComplete"/></td>
                </logic:iterate>
            </tr>
        </logic:iterate>
    </table>
</div>
